package com.smartstate.EnvironmentMonitor.dto.update;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(value = "EquipmentDTO", description = "电力设备DTO")
public class EquipmentDTO {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "设备编号")
    private String code;

    @ApiModelProperty(value = "设备名称")
    private String name;


    @ApiModelProperty(value = "别名")
    private String alias;

    @ApiModelProperty(value = "设备类型 1.a设备 , 0.b设备")
    private Integer type;

    @ApiModelProperty(value = "设备状态  1.在线   0.离线")
    private Integer status;

    /**
     * 属性值参数
     */
    @ApiModelProperty(value = "属性值参数")
    private List<AddressData> attributeList;

    @Data
    @ApiModel(value = "属性值参数", description = "属性值参数")
    public static class AddressData {
        @ApiModelProperty(value = "属性名")
        private String attributeName;
        @ApiModelProperty(value = "是否做差值 0：做，1：不做")
        private String isDifference;
        @ApiModelProperty(value = "属性别名")
        private String attributeAlias;
    }
}
